import request from '@/utils/axios'
import qs from 'qs'

//用户登录
export function login(params) {
    return request({
        url: 'token',
        data: qs.stringify(params),
        method: 'POST'
    })
}
//用户退出
export function logout(params) {
    return request({
        url: '/user/logout',
        method: 'get',
        data:params
    })
}
//获取登录用户信息
export function getUserInfo(params) {
    return request({
        url: '/user/info/get',
        method: 'get',
        data:params
    })
}